package cn.wolfcode.luowowo.comment.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 问题回答
 */

@Setter
@Getter
@ToString
@Document("question_answer")
public class QuestionAnswer implements Serializable {

    @Id
    private String id;  //mongodb默认的是id

    private Long questionId;  //问题id

    private String questionTitle; //标题

    private Long userId;    //用户id

    private String username;  //用户名

    private int level;      //用户等级

    private String headUrl;     //头像

    private Date createTime;    //回答时间

    private String content;      //回答内容

    private int thumbupnum;     //点赞数


}